#include <iostream>

using namespace std;

int main()
{
	double Dap = 100, Cleo = 100;
	double Dapr;
	int res = 0;
	
	Dapr = Dap + Dap * 0.10;
	Cleo += Cleo * 0.05;
	
	for(int i = 1; ; i++)
	{
		Dapr += (Dap / 10) * i;
		Cleo += (Cleo * 0.05) * i;
		
		if(Cleo >= Dapr)
		{
			res = i;
			break;
		} 
	}
	
	cout << "need " << res << " years, Cleo will get more bonus than Dap\n";
	cout << "and now, Cleo has: " << Cleo << "$\t" << "Dap has: " << Dapr << "$" << endl;
	cin.get();
	return 0;
}
